<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<style>
			.box {
				width: 200px;
				height: 200px;
				background-color: orange;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<button class="btn">按钮</button>
		</div>
		<br /><br /><br /><br /><br /><br /><br /><br /><br />
		<br /><br /><br /><br /><br /><br /><br /><br /><br />
		<br /><br /><br /><br /><br /><br /><br /><br /><br />
		<script>
			var divEl = document.querySelector('.box')
			var btnEl = document.querySelector('.box .btn')

			divEl.onclick = function (e) {
				console.log('div发生点击了', e.target, e.type, e.currentTarget, e.eventPhase)
				console.log(e.clientX, e.clientY)
				console.log(e.pageX, e.pageY)
				console.log(e.screenX, e.screenY)
			}
		</script>
	</body>
</html>
